//
// Created by Tony on 2024/7/25.
//

#include "RETURN_V.h"

namespace Runtime {

void RETURN_V::execute(RtData::Frame& frame) {
    auto stack = frame.getStack();
    auto currentFrame = stack->pop();
    auto invokerFrame = stack->top();

    auto retVar = frame.popSlot();
    invokerFrame->pushSlot(retVar);
}

} // namespace Runtime
